#include<bits/stdc++.h>
using namespace std;
const int N = 1e8;
int t;
int n;
int a1[N];
int a2[N];
int a3[N];
int a4[N];

int main(void){
	freopen("club.in","r",stdin);
	freopen("club.out","w",stdout);
	cin>>t>>n;
	for(int i = 1;i<=t;i++){
		 cin>>a1[i],a2[i],a3[i],a4[i];
	}
	for(int i = 1;i<=t;i++){
		
	}
	return 0;
} 
